package hub.cathome.entity;

import java.util.ArrayList;
import java.util.Date;

public class ShotBlog {
    private Integer blogId;
    @Deprecated
    private Integer catId;
    private Integer userId;
    private String content;
    private Integer likeCount;
    private Integer commentCount;
    private Date date;
    private ArrayList<ResourceLink> images = new ArrayList<>();
    private ArrayList<Comment> comments = new ArrayList<>();
    private ArrayList<Like> likes = new ArrayList<>();

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getBlogId() {
        return blogId;
    }

    public ArrayList<Like> getLikes() {
        return likes;
    }

    public void setLikes(ArrayList<Like> likes) {
        this.likes = likes;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public ArrayList<ResourceLink> getImages() {
        return images;
    }

    public void setImages(ArrayList<ResourceLink> images) {
        this.images = images;
    }

    public Integer getCatId() {
        return catId;
    }

    public void setCatId(Integer catId) {
        this.catId = catId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public ArrayList<Comment> getComments() {
        return comments;
    }

    public void setComments(ArrayList<Comment> comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "ShotBlog{" +
                "blogId=" + blogId +
                ", catId=" + catId +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", likeCount=" + likeCount +
                ", commentCount=" + commentCount +
                ", images=" + images +
                ", comments=" + comments +
                ", likes=" + likes +
                '}';
    }
}
